package zmr.zmr1;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
@RequestMapping("/user")
public class UserController{	
	
    @RequestMapping ("/detail")
	public String userInfo(Model model) 
	{
		UserInfo user = new UserInfo();
		user.setUsername("曼陀罗记");
		user.setSex("女");
		user.setAge("10");
		
		model.addAttribute("user",user);
		return "user/user";
	}
    
}

